package liuwanghui.service;

import liuwanghui.dto.request.*;
import liuwanghui.pojo.Result;
import org.springframework.transaction.annotation.Transactional;

public interface SaleOrderService {
    /**
     * 获取销售订单列表
     */
    Result getSaleOrders(SaleOrderQueryDTO params);

    /**
     * 获取订单详情
     */
    Result getById(Long id);

    /**
     * 创建销售订单
     */
    @Transactional
    Result createOrder(SaleOrderCreateDTO dto);

    /**
     * 取消订单
     */
    @Transactional
    void cancelOrder(Long id);

    /**
     * 确认收货
     */
    @Transactional
    void confirmReceipt(Long id);

    /**
     * 评价订单
     */
    @Transactional
    void reviewOrder(Long id, SaleOrderReviewDTO dto);
}